<script src="__STATIC__/admin/js/jquery.min.js"></script>
<script src="__STATIC__/admin/js/amazeui.min.js"></script>
<script src="__STATIC__/admin/js/pintuer.js"></script>
<script src="__STATIC__/admin/js/app.js"></script>
{js href="__STATIC__/admin/layer/layer.js" /}
{js href="__STATIC__/admin/layer/extend/layer.ext.js" /}
{js href="__STATIC__/admin/laydate/laydate.js" /}
{js href="__STATIC__/admin/laytpl/laytpl.js" /}
<script>
    $('.upload').on('click',function (){
            var id = $(this).attr('data-id');
            upload(id);
        }
    );
    function upload(id){
        layer.open({
            type:2,
            title:false,
            area: ['70%', '90%'],
            offset: '5%',
            content: "{:url('/admin/material')}?id="+id
        });
    }
</script>
{if request()->isPost()}
<script>
    layer.msg('操作完成！');
    setTimeout(function (){
        parent.window.location.href = parent.window.location.href;
    },800);
</script>
{/if}
</body>
</html>